
//组件
import DefMainLayout from "@/platform/components/main-layout/DefMainLayout.vue";
import CustomEmpty from '@/platform/components/custom-empty/CustomEmpty.vue';
import LineTitle from '@/platform/components/line-title/LineTitle.vue';
import DefDrawerLayout from '@/platform/components/drawer-layout/DefDrawerLayout.vue';
import BusinessToolBtns from '@/platform/components/business-btn/BusinessToolBtns.vue';
import CustomButton from '@/platform/components/custom-button/CustomButton.vue';
import BusinessRowBtns from '@/platform/components/business-btn/BusinessRowBtns.vue';
import BusinessDropdownBtns from '@/platform/components/business-btn/BusinessDropdownBtns.vue';
import DynamicIcon from "@/platform/components/dynamic-icon/DynamicIcon";
import CustomCascader from "@/platform/components/custom-cascader/CustomCascader.vue";

//指令
import scrollbar from "@/platform/directives/scrollbar/scrollbar";
import errorSrc from "@/platform/directives/error-src/error-src";
import focus from "@/platform/directives/focus/focus";




// 使用的配置
export const useConfig = {
    //第三方组件
    thirdPartyComponents: [

    ],
    //自定义组件
    customComponents: [
        {
            name: 'AppDefMainLayout',
            component: DefMainLayout
        },
        {
            name: 'AppCustomEmpty',
            component: CustomEmpty
        },
        {
            name: 'AppLineTitle',
            component: LineTitle
        },
        {
            name: 'AppDefDrawerLayout',
            component: DefDrawerLayout
        },
        {
            name: 'AppCustomButton',
            component: CustomButton
        },
        {
            name: 'AppBusinessToolBtns',
            component: BusinessToolBtns
        },
        {
            name: 'AppBusinessRowBtns',
            component: BusinessRowBtns
        },
        {
            name: 'AppBusinessDropdownBtns',
            component: BusinessDropdownBtns
        },
        {
            name: 'AppDynamicIcon',
            component: DynamicIcon
        },
        {
            name: 'AppCustomCascader',
            component: CustomCascader
        }
    ],
    //自定义指令
    customDirectives: [
        {
            name: 'app-error-src',
            directive: errorSrc
        },
        {
            name: 'app-scrollbar',
            directive: scrollbar
        },
        {
            name: 'app-focus',
            directive: focus
        },
    ]
}